package com.tamguo.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.tamguo.config.dao.SuperMapper;
import com.tamguo.model.MenuEntity;
import com.tamguo.model.SubjectEntity;

import java.util.List;

public interface MenuMapper extends SuperMapper<MenuEntity> {

    List<MenuEntity> findFatherMenus();

    List<MenuEntity> findMenuByParentId(String parentId);

    List<MenuEntity> findAllFatherMenus();

    List<MenuEntity> findLeftFatherMenus();

    List<MenuEntity> findFooterFatherMenus();

    List<MenuEntity> findChapterFatherMenus();

    Page<SubjectEntity> findByName(String name);

}
